import request from '@/utils/request'

// 查询学生表2列表
export function listStudent2(query) {
  return request({
    url: '/system/student2/list',
    method: 'get',
    params: query
  })
}

// 查询学生表2详细
export function getStudent2(id) {
  return request({
    url: '/system/student2/' + id,
    method: 'get'
  })
}

// 新增学生表2
export function addStudent2(data) {
  return request({
    url: '/system/student2',
    method: 'post',
    data: data
  })
}

// 修改学生表2
export function updateStudent2(data) {
  return request({
    url: '/system/student2',
    method: 'put',
    data: data
  })
}

// 删除学生表2
export function delStudent2(id) {
  return request({
    url: '/system/student2/' + id,
    method: 'delete'
  })
}
